package com.popo.android.activity;

import android.app.Activity;
import android.app.Service;
import android.content.ComponentName;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.Binder;
import android.os.Bundle;
import android.os.IBinder;
import android.os.Parcel;
import android.os.RemoteException;

import com.popo.android.R;
import com.popo.android.service.LocalBoundService;
import com.popo.android.service.LocalBoundService.MyIBinder;

public class MemoryStatus extends Activity {
    private ServiceConnection conn = new ServiceConnection() {
        

        @Override
        public void onServiceDisconnected(ComponentName name) {
            // TODO Auto-generated method stub
            System.out.println(name.getShortClassName()+"disconnected");
        }
        
        @Override
        public void onServiceConnected(ComponentName name, IBinder service) {
            Parcel data = null;
            Parcel reply = null;
            int flags = 0;
            int code = 0;
            // TODO Auto-generated method stub
            LocalBoundService.MyIBinder myIBinder = (MyIBinder) service;
            
        }
    };

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        setContentView(R.layout.test1 );
//        Intent i = new Intent(this, LocalBoundService.class);
//        bindService(i, conn , BIND_AUTO_CREATE);
        
    }
}
